#define ERROR 0
#define OK 1

status GetElem(Linklist L, int i ElemType *e)
{
typedef struct node* linklist 
     int j = 0;
     Linklist p;
     p ->next;
     j < i;
     while (p && j<i)
     {	
       p = p->nest;
       ++j;       
     }
     if (!p || j>i)
     {
        return ERROR;    
     }	
     *e = p->data;
     return Ok;
}     
